
//
//  OneVC.m
//  yuanjiang
//
//  Created by YuanJiang on 2019/9/19.
//  Copyright © 2019 llbt. All rights reserved.
//

#import "OneVC.h"
#import "UIGestureRecognizer+Block.h"

@interface OneVC ()

@end

@implementation OneVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 40)];
    label.backgroundColor = [UIColor redColor];
    label.layer.cornerRadius = 8;
    label.layer.masksToBounds = YES;
    label.textAlignment = NSTextAlignmentCenter;
    label.text = @"这是个label";
    label.userInteractionEnabled = YES;
    [self.view addSubview:label];
    [label addGestureRecognizer:[UITapGestureRecognizer yj_gesterTargetWithAction:^(id  _Nonnull gesterRecognizer) {
        NSLog(@"===========%@",label.text);
    }]];
}
@end
